package com.easemob.chat;

import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;

public class LocationMessageBody extends MessageBody
  implements Parcelable
{
  String address;
  double latitude;
  double longitude;
  public static final Parcelable.Creator<LocationMessageBody> CREATOR = new Parcelable.Creator()
  {
    public LocationMessageBody createFromParcel(Parcel paramAnonymousParcel)
    {
      return new LocationMessageBody(paramAnonymousParcel, null);
    }

    public LocationMessageBody[] newArray(int paramAnonymousInt)
    {
      return new LocationMessageBody[paramAnonymousInt];
    }
  };

  public LocationMessageBody(String paramString, double paramDouble1, double paramDouble2)
  {
    this.address = paramString;
    this.latitude = paramDouble1;
    this.longitude = paramDouble2;
  }

  public String getAddress()
  {
    return this.address;
  }

  public double getLatitude()
  {
    return this.latitude;
  }

  public double getLongitude()
  {
    return this.longitude;
  }

  public String toString()
  {
    return "location:" + this.address + ",lat:" + this.latitude + ",lng:" + this.longitude;
  }

  public int describeContents()
  {
    return 0;
  }

  public void writeToParcel(Parcel paramParcel, int paramInt)
  {
    paramParcel.writeString(this.address);
    paramParcel.writeDouble(this.latitude);
    paramParcel.writeDouble(this.longitude);
  }

  private LocationMessageBody(Parcel paramParcel)
  {
    this.address = paramParcel.readString();
    this.latitude = paramParcel.readDouble();
    this.longitude = paramParcel.readDouble();
  }
}

/* Location:           D:\hygieia\userclient\common\libs\easemobchat_2.1.8.jar
 * Qualified Name:     com.easemob.chat.LocationMessageBody
 * JD-Core Version:    0.6.1
 */